/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.risk.control.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hopes.bizz.risk.control.dto.RiskMeasureTaskConfigDTO;
import com.hopes.bizz.risk.control.entity.RiskMeasureTaskConfigEntity;
import com.hopes.bizz.risk.control.vo.RiskMeasureTaskConfigVO;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * 隐患排查内容配置
 *
 * @author pig
 * @date 2023-07-20 08:56:11
 */
public interface RiskMeasureTaskConfigService extends IService<RiskMeasureTaskConfigEntity> {


    /**
     * 隐患排查内容配置Vo
     * @param id  主键
     * @return    结果
     */
    RiskMeasureTaskConfigVO getById(Serializable id);

    /**
     * 保存隐患排查内容配置 和 隐患排查任务
     * @param measureTaskConfigDTO  对象
     * @return                      结果
     */
    boolean save(RiskMeasureTaskConfigDTO measureTaskConfigDTO);

    /**
     * 批量保存管控任务配置
     * @param riskMeasureTaskConfigVOList  管控任务配置
     * @return                             结果
     */
    boolean saveBatchByVO(List<RiskMeasureTaskConfigVO> riskMeasureTaskConfigVOList);

    /**
     * 更新隐患排查内容配置 和 隐患排查任务
     * @param measureTaskConfigDTO 对象
     * @return                     结果
     */
    boolean updateById(RiskMeasureTaskConfigDTO measureTaskConfigDTO);


    /**
     * 批量删除
     * @param list  删除id集合
     * @return      结果
     */
    boolean removeBatchByIds(Collection<?> list);

    // 根据风险单元id列表查询隐患任务配置
    Long countByRiskUnitIdList(List<Long> riskUnitIdList);
}
